import request from '@/utils/request'

// 查询报价明细列表
export function listZcQuotationDetails(query) {
  return request({
    url: '/sales/ZcQuotationDetails/list',
    method: 'get',
    params: query
  })
}

// 查询报价明细详细
export function getZcQuotationDetails(id) {
  return request({
    url: '/sales/ZcQuotationDetails/' + id,
    method: 'get'
  })
}

// 新增报价明细
export function addZcQuotationDetails(data) {
  return request({
    url: '/sales/ZcQuotationDetails',
    method: 'post',
    data: data
  })
}

// 审核报价明细
export function auditZcQuotationDetails(data,audit) {
  return request({
    url: '/sales/ZcQuotationDetails/audit/'+audit,
    method: 'post',
    data: data
  })
}

// 修改报价明细
export function updateZcQuotationDetails(data) {
  return request({
    url: '/sales/ZcQuotationDetails',
    method: 'put',
    data: data
  })
}

// 删除报价明细
export function delZcQuotationDetails(id) {
  return request({
    url: '/sales/ZcQuotationDetails/' + id,
    method: 'delete'
  })
}
